package com.easylinkin.linkappapi.facerecognition.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("linkapp_face_recognition_record")
public class RecognitionRecord {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("capture_photo")
    private String capturePhoto;

    @TableField("recognition_photo")
    private String recognitionPhoto;

    // 0 为人脸识别，1为越界抓拍
    @TableField("recognition_type")
    private Integer recognitionType;

    /**
     * 识别的人员ID。未识别为-1
     */
    @TableField("recognition_personnel")
    private Long personnelId;

    @TableField("recognition_name")
    private String name;

    @TableField("identifier_name")
    private String identifierName;

    @TableField("color")
    private String color;

    @TableField("device_code")
    private String deviceCode;

    @TableField("device_id")
    private String deviceId;

    @TableField("tenant_id")
    private String tenantId;

    @TableField("create_time")
    private Date createTime;

    private transient String queryTimeStart;

    private transient String queryTimeEnd;
}
